"""Build rdb tests"""
import daos_build

def scons():
    """Execute build"""
    Import('denv')

    # rdbt server
    librdbt = daos_build.library(denv, 'rdbt', ['rdb_test.c', 'rpc.c'],
                                 install_off='../..')
    denv.Install('$PREFIX/lib64/daos_srv', librdbt)

    # rdbt client
    rdbt = daos_build.program(denv, 'rdbt', ['rdbt.c', 'rpc.c'],
                              LIBS=['cart', 'gurt', 'daos_common_pmem', 'uuid',
                                    'daos'])
    denv.Install('$PREFIX/bin', rdbt)

if __name__ == "SCons.Script":
    scons()
